package com.example.day7.presenter;

import com.example.day7.base.BasePresenter;
import com.example.day7.bean.NaviBean;
import com.example.day7.model.NaviCallBack;
import com.example.day7.model.NaviModel;
import com.example.day7.view.NaviView;

public class NaviPresnter extends BasePresenter<NaviView> implements NaviCallBack {
    private NaviModel model;
    @Override
    protected void initModel() {
        this.model=new NaviModel();
        addModel(model);
    }
    public void getdata(){
        model.addNaviModel(this);
    }
    @Override
    public void onSuccess(NaviBean data) {
        mview.onSuccess(data);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
